
--- date/time translator
word=0  --单字优先模式参数
function App_Translator(input, seg)
   if (input == "/vscode") then  --打开code
      strProgram = '"D:\\Program Files\\Microsoft VS Code\\Code.exe"' 
      strCmd = 'start "" '..strProgram 
      os.execute(strCmd)
   end
   if (input == "/jsq") then  --打开计算器
    strProgram = '"C:\\Windows\\system32\\calc.exe"' 
    strCmd = 'start "" '..strProgram 
    os.execute(strCmd)
   end
   if (input == "/kzmb") then  --打开控制面板
    strProgram = '"C:\\Windows\\system32\\control.exe"' 
    strCmd = 'start "" '..strProgram 
    os.execute(strCmd)
   end
   if (input == "/cmd") then  --打开命令行窗口
    strProgram = '"C:\\Windows\\system32\\cmd.exe"' 
    strCmd = 'start "" '..strProgram 
    os.execute(strCmd)
   end
   if (input == "/wx") then  --打开微信
    strProgram = '"d:\\Program Files\\WeChat\\WeChat.exe"' 
    strCmd = 'start "" '..strProgram 
    os.execute(strCmd)
   end
   if (input == "/typ") then  --打开Typora markDown
    strProgram = '"D:\\Typora\\Typora.exe"' 
    strCmd = 'start "" '..strProgram 
    os.execute(strCmd)
   end
   if (input == "/execl") then  --打开excel。请改为当前系统的实际路径！
    strProgram = '"C:\\Program Files\\Microsoft Office\\root\\Office16\\EXCEL.EXE"' 
    strCmd = 'start "" '..strProgram 
    os.execute(strCmd)
   end
   if (input == "/word") then  --打开word。请改为当前系统的实际路径！
    strProgram = '"C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE"' 
    strCmd = 'start "" '..strProgram 
    os.execute(strCmd)
   end
   if (input == "/ppt") then  --打开PPT。请改为当前系统的实际路径！
    strProgram = '"C:\\Program Files\\Microsoft Office\\root\\Office16\\POWERPNT.EXE"' 
    strCmd = 'start "" '..strProgram 
    os.execute(strCmd)
   end
   if (input == "/bd") then  --打开百度
    strProgram = '"https://www.baidu.com/"' 
    strCmd = 'start "" '..strProgram 
    os.execute(strCmd)
   end
   if (input == "/mobax") then  --打开MobaXterm
      strProgram = '"D:\\Program Files\\MobaXterm\\MobaXterm1_CHS1.exe"' 
      strCmd = 'start "" '..strProgram 
      os.execute(strCmd)
   end
   if (input == "/mot") then  --打开motrix
      strProgram = '"D:\\Program Files\\motrix\\Motrix.exe"' 
      strCmd = 'start "" '..strProgram 
      os.execute(strCmd)
   end
   if (input == "/ob") then  --打开obsidian
      strProgram = '"C:\\Users\\admin\\AppData\\Local\\Obsidian\\Obsidian.exe"' 
      strCmd = 'start "" '..strProgram 
      os.execute(strCmd)
   end
   if (input == "/sync") then  --打开rime同步
      strProgram = '"D:\\Program Files\\Rime\\weasel-0.15.1\\WeaselDeployer.exe" /sync' 
      strCmd = 'start "" '..strProgram 
      os.execute(strCmd)
   end
   if (input == "/wps") then  --打开rime同步
      strProgram = '"D:\\Program Files\\WPS Office\\ksolaunch.exe"' 
      strCmd = 'start "" '..strProgram 
      os.execute(strCmd)
   end
   
   
end